package com.ruoyi.business.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.business.RechargeActivity;
import com.ruoyi.business.vo.RechargeActivityListVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RechargeActivityMapper extends BaseMapper<RechargeActivity> {
    int deleteByPrimaryKey(Integer id);

    int insert(RechargeActivity record);

    int insertSelective(RechargeActivity record);

    RechargeActivity selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(RechargeActivity record);

    int updateByPrimaryKey(RechargeActivity record);

    IPage<RechargeActivityListVO> listByPage(@Param("page") Page<RechargeActivityListVO> page, @Param("uId") Integer uId, @Param("status") Integer status, @Param("adminId") Integer adminId);

    List<RechargeActivityListVO> selectByUser(Long userId);
}